package com.dynabook.ems.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 更新BOM详情状态请求DTO
 */
@Data
@ApiModel(value = "更新BOM详情状态请求", description = "根据工单号更新BOM详情状态的请求参数")
public class UpdateBomDetailStatusRequest {
    
    @ApiModelProperty(value = "工单号", example = "WO202501001", required = true)
    @NotBlank(message = "工单号不能为空")
    private String workOrderNumber;

    @ApiModelProperty(value = "生产数量", example = "100", required = true)
    @NotNull(message = "生产数量不能为空")
    private Integer totalNumber;
}